<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="templates2/layout.xhtml">
	<ui:define name="content">
		<h:form>			
			<article class="module width_full"> <header>
			<h3>List Transaction</h3>
			</header>
			<div class="module_content">
				<fieldset style="width: 100%;">
							<p:dataTable
								value="#{savingAccDetailManagedBean.txs}" var="t">
								<p:column>
								<f:facet name="header"></f:facet>
									<h:selectBooleanCheckbox></h:selectBooleanCheckbox>
								</p:column>
								<p:column>
									<f:facet name="header">Transaction ID
								</f:facet>
								#{t.transactionID}
							</p:column>
								<p:column>
									<f:facet name="header">Fund</f:facet>
								#{t.funds}
							</p:column>
								<p:column>
									<f:facet name="header">Created Date</f:facet>
								#{t.createdDate}
							</p:column>
									<p:column>
										<f:facet name="header">Begin Time</f:facet>
								#{t.beginTime}
							</p:column>
									<p:column>
										<f:facet name="header">End Time</f:facet>
								#{t.endTime}
							</p:column>
									<p:column>
										<f:facet name="header">State</f:facet>
								#{t.transactionState.state}
							</p:column>
							</p:dataTable>
						</fieldset>
				
				<div class="clear"></div>
			</div>
			<footer>
			<div class="submit_link">
				 
					<h:commandButton type="submit" value="Approve" class="alt_btn" action="#{savingCreateTransManagedBean.createTransaction}" styleClass="alt_btn" />
					<h:commandButton type="submit" value="Deny" class="alt_btn" action="#{savingCreateTransManagedBean.createTransaction}" styleClass="alt_btn" />
					<h:commandButton type="submit" value="Back" class="alt_btn" action="savingAccView?faces-redirect=true" styleClass="alt_btn" />
			</div>
			</footer>
			<!-- <footer> <div class="submit_link">
				<input type="submit" value="Search" class="alt_btn" /> <input
					type="submit" value="Reset" />
			</div> </footer> --> 
			</article>
			<article class="module width_full">
			 <!-- end of .tab_container --> </article>
		</h:form>
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="/templates2/sidebar.xhtml">
			<ui:param name="current" value="home"></ui:param>
		</ui:include>
	</ui:define>
</ui:composition>
</html>